package cz.proks.easyhelpdesk.api.model.base;


public abstract class AnIdentifiableHelpdeskModel extends AnIdentifiableModel {
	private Long helpdeskId; 
		
	public Long getHelpdeskId() {
		return helpdeskId;
	}
	
	public void setHelpdeskId(Long helpdeskId) {
		this.helpdeskId = helpdeskId;
	}

    @Override
    public String toString() {
        return "[id=" + getId() + ", helpdeskId=" + helpdeskId + "]";
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = super.hashCode();
        result = prime * result + ((helpdeskId == null) ? 0 : helpdeskId.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (!super.equals(obj))
            return false;
        if (getClass() != obj.getClass())
            return false;
        AnIdentifiableHelpdeskModel other = (AnIdentifiableHelpdeskModel) obj;
        if (helpdeskId == null) {
            if (other.helpdeskId != null)
                return false;
        } else if (!helpdeskId.equals(other.helpdeskId))
            return false;
        return true;
    }			        
}
